home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C++ source text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 6e 65 72 | 2e 62 62 6e 70 6c 61 6e |news.ner|.bbnplan|
|00000030| 65 74 2e 6e 65 74 21 61 | 72 63 6f 21 75 73 65 6e |et.net!a|rco!usen|
|00000040| 65 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 4c |et.From:| Brian L|
|00000050| 65 61 63 68 20 3c 6c 61 | 73 62 66 6c 40 61 61 69 |each <la|sbfl@aai|
|00000060| 2e 61 72 63 6f 2e 63 6f | 6d 3e 0a 53 75 62 6a 65 |.arco.co|m>.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 22 20 41 20 73 69 6c 6c |ct: Re: |" A sill|
|00000080| 79 20 62 65 67 69 6e 6e | 65 72 27 73 20 71 75 65 |y beginn|er's que|
|00000090| 73 74 69 6f 6e 0a 58 2d | 4e 6e 74 70 2d 50 6f 73 |stion.X-|Nntp-Pos|
|000000a0| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 31 33 36 2e 32 |ting-Hos|t: 136.2|
|000000b0| 32 36 2e 31 31 36 2e 31 | 0a 43 6f 6e 74 65 6e 74 |26.116.1|.Content|
|000000c0| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|000000d0| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000000e0| 63 69 69 0a 54 6f 3a 20 | 53 74 65 76 65 20 52 75 |cii.To: |Steve Ru|
|000000f0| 73 73 65 6c 6c 20 3c 73 | 72 75 73 73 65 6c 6c 40 |ssell <s|russell@|
|00000100| 6e 6f 76 61 2e 75 6d 75 | 63 2e 65 64 75 3e 0a 4d |nova.umu|c.edu>.M|
|00000110| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 33 31 36 39 |essage-I|D: <3169|
|00000120| 41 46 33 30 2e 37 41 41 | 42 40 61 61 69 2e 61 72 |AF30.7AA|B@aai.ar|
|00000130| 63 6f 2e 63 6f 6d 3e 0a | 53 65 6e 64 65 72 3a 20 |co.com>.|Sender: |
|00000140| 75 73 65 6e 65 74 40 6e | 65 77 73 2e 61 72 63 6f |usenet@n|ews.arco|
|00000150| 2e 63 6f 6d 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |.com.Con|tent-Tra|
|00000160| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|00000170| 37 62 69 74 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |7bit.Org|anizatio|
|00000180| 6e 3a 20 41 52 43 4f 20 | 41 6c 61 73 6b 61 20 49 |n: ARCO |Alaska I|
|00000190| 6e 63 2e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |nc..Refe|rences: |
|000001a0| 3c 34 6b 39 76 30 65 24 | 70 35 37 40 6e 6f 76 61 |<4k9v0e$|p57@nova|
|000001b0| 2e 75 6d 75 63 2e 65 64 | 75 3e 0a 4d 69 6d 65 2d |.umuc.ed|u>.Mime-|
|000001c0| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 44 61 74 |Version:| 1.0.Dat|
|000001d0| 65 3a 20 54 75 65 2c 20 | 39 20 41 70 72 20 31 39 |e: Tue, |9 Apr 19|
|000001e0| 39 36 20 30 30 3a 32 38 | 3a 33 32 20 47 4d 54 0a |96 00:28|:32 GMT.|
|000001f0| 58 2d 4d 61 69 6c 65 72 | 3a 20 4d 6f 7a 69 6c 6c |X-Mailer|: Mozill|
|00000200| 61 20 32 2e 30 20 28 58 | 31 31 3b 20 49 3b 20 48 |a 2.0 (X|11; I; H|
|00000210| 50 2d 55 58 20 41 2e 30 | 39 2e 30 35 20 39 30 30 |P-UX A.0|9.05 900|
|00000220| 30 2f 37 35 35 29 0a 0a | 53 74 65 76 65 20 52 75 |0/755)..|Steve Ru|
|00000230| 73 73 65 6c 6c 20 77 72 | 6f 74 65 3a 0a 3e 20 0a |ssell wr|ote:.> .|
|00000240| 3e 20 54 68 69 73 20 6d | 61 79 20 73 6f 75 6e 64 |> This m|ay sound|
|00000250| 20 6c 69 6b 65 20 61 20 | 64 75 6d 62 20 71 75 65 | like a |dumb que|
|00000260| 73 74 69 6f 6e 2c 20 62 | 75 74 20 68 65 79 20 49 |stion, b|ut hey I|
|00000270| 6d 20 73 74 69 6c 6c 20 | 61 20 6e 65 77 20 70 72 |m still |a new pr|
|00000280| 6f 67 72 61 6d 6d 65 72 | 0a 3e 20 61 6e 64 20 69 |ogrammer|.> and i|
|00000290| 74 20 69 73 20 6f 6e 65 | 20 6f 66 20 74 68 69 73 |t is one| of this|
|000002a0| 20 74 68 69 6e 67 73 20 | 6e 6f 74 20 74 61 6c 6b | things |not talk|
|000002b0| 65 64 20 61 20 6c 6f 74 | 20 61 62 6f 75 74 20 69 |ed a lot| about i|
|000002c0| 6e 20 73 63 68 6f 6f 6c | 2e 0a 3e 20 0a 3e 20 41 |n school|..> .> A|
|000002d0| 6e 79 77 61 79 20 77 68 | 61 74 20 69 73 20 61 20 |nyway wh|at is a |
|000002e0| 22 20 63 6f 72 65 20 64 | 75 6d 70 22 3f 20 20 57 |" core d|ump"? W|
|000002f0| 68 61 74 20 63 61 75 73 | 65 73 20 69 74 3f 20 20 |hat caus|es it? |
|00000300| 57 68 61 74 20 69 73 20 | 61 0a 3e 20 22 73 65 67 |What is |a.> "seg|
|00000310| 6d 65 6e 74 20 66 61 75 | 6c 74 22 3f 20 20 49 27 |ment fau|lt"? I'|
|00000320| 76 65 20 73 65 65 6e 20 | 6d 65 73 73 61 67 65 73 |ve seen |messages|
|00000330| 20 6c 69 6b 65 20 22 20 | 73 65 67 6d 65 6e 74 20 | like " |segment |
|00000340| 66 61 75 6c 74 2c 20 63 | 6f 72 65 0a 3e 20 64 75 |fault, c|ore.> du|
|00000350| 6d 70 65 64 22 2e 20 20 | 49 20 73 74 6f 70 70 65 |mped". |I stoppe|
|00000360| 64 20 69 74 20 62 79 20 | 70 75 74 74 69 6e 67 20 |d it by |putting |
|00000370| 69 6e 20 65 78 69 74 20 | 63 6f 6d 6d 61 6e 64 73 |in exit |commands|
|00000380| 20 62 65 66 6f 72 65 20 | 74 68 65 79 0a 3e 20 63 | before |they.> c|
|00000390| 6f 75 6c 64 20 68 61 70 | 70 65 6e 2c 20 62 75 74 |ould hap|pen, but|
|000003a0| 20 77 68 61 74 20 64 6f | 20 74 68 65 73 65 20 6d | what do| these m|
|000003b0| 65 73 73 61 67 65 73 20 | 6d 65 61 6e 3f 0a 3e 20 |essages |mean?.> |
|000003c0| 0a 3e 20 41 6c 73 6f 2c | 20 49 20 6d 61 64 65 20 |.> Also,| I made |
|000003d0| 6d 79 20 66 69 72 73 74 | 20 63 6c 61 73 73 20 64 |my first| class d|
|000003e0| 65 73 74 72 75 63 74 6f | 72 20 74 6f 64 61 79 20 |estructo|r today |
|000003f0| 66 6f 72 20 64 65 61 6c | 6c 6f 63 61 74 69 6e 67 |for deal|locating|
|00000400| 0a 3e 20 64 79 6e 61 6d | 69 63 61 6c 6c 79 20 61 |.> dynam|ically a|
|00000410| 6c 6c 6f 63 61 74 65 64 | 20 6d 65 6d 6f 72 79 2e |llocated| memory.|
|00000420| 20 20 49 20 70 75 74 20 | 61 20 62 72 69 65 66 20 | I put |a brief |
|00000430| 6f 75 74 70 75 74 20 6d | 65 73 73 61 67 65 20 69 |output m|essage i|
|00000440| 6e 0a 3e 20 69 74 20 74 | 6f 20 6c 65 74 20 6d 65 |n.> it t|o let me|
|00000450| 20 6b 6e 6f 77 20 77 68 | 65 6e 20 69 74 20 65 78 | know wh|en it ex|
|00000460| 65 63 75 74 65 73 2e 20 | 20 49 20 6e 65 76 65 72 |ecutes. | I never|
|00000470| 20 73 61 77 20 69 74 2c | 20 64 6f 65 73 20 74 68 | saw it,| does th|
|00000480| 69 73 0a 3e 20 6d 65 61 | 6e 20 74 68 61 74 20 69 |is.> mea|n that i|
|00000490| 74 20 64 6f 65 73 6e 27 | 74 20 65 78 65 63 75 74 |t doesn'|t execut|
|000004a0| 65 20 6f 72 20 6a 75 73 | 74 20 74 68 61 74 20 69 |e or jus|t that i|
|000004b0| 74 20 65 78 65 63 75 74 | 65 73 20 61 66 74 65 72 |t execut|es after|
|000004c0| 20 6d 79 0a 3e 20 70 72 | 6f 67 72 61 6d 20 69 73 | my.> pr|ogram is|
|000004d0| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 6f 76 65 72 | complet|ely over|
|000004e0| 20 28 20 68 65 6e 63 65 | 20 6e 6f 20 6d 65 73 73 | ( hence| no mess|
|000004f0| 61 67 65 29 2e 0a 3e 20 | 0a 3e 20 49 73 20 74 68 |age)..> |.> Is th|
|00000500| 65 72 65 20 61 20 77 61 | 79 20 74 6f 20 6d 61 6e |ere a wa|y to man|
|00000510| 75 61 6c 6c 79 20 67 65 | 74 20 74 68 65 20 64 65 |ually ge|t the de|
|00000520| 73 74 72 75 63 74 6f 72 | 20 74 6f 20 65 78 65 63 |structor| to exec|
|00000530| 75 74 65 3f 0a 3e 20 0a | 3e 20 54 68 61 6e 6b 73 |ute?.> .|> Thanks|
|00000540| 0a 3e 20 53 54 65 76 65 | 0a 0a 53 74 65 76 65 2c |.> STeve|..Steve,|
|00000550| 0a 0a 49 6e 20 6f 72 64 | 65 72 3a 0a 41 20 63 6f |..In ord|er:.A co|
|00000560| 72 65 20 64 75 6d 70 20 | 69 73 20 61 20 62 79 74 |re dump |is a byt|
|00000570| 65 20 69 6d 61 67 65 20 | 6f 66 20 79 6f 75 72 20 |e image |of your |
|00000580| 65 78 65 63 75 74 69 6e | 67 20 70 72 6f 67 72 61 |executin|g progra|
|00000590| 6d 20 74 68 65 20 73 79 | 73 74 65 6d 0a 6d 61 6b |m the sy|stem.mak|
|000005a0| 65 73 20 77 68 65 6e 20 | 79 6f 75 72 20 70 72 6f |es when |your pro|
|000005b0| 67 72 61 6d 20 64 6f 65 | 73 20 73 6f 6d 65 74 68 |gram doe|s someth|
|000005c0| 69 6e 67 20 69 74 20 73 | 68 6f 75 6c 64 6e 27 74 |ing it s|houldn't|
|000005d0| 20 28 73 75 63 68 20 61 | 73 20 0a 64 65 72 65 66 | (such a|s .deref|
|000005e0| 65 72 65 6e 63 69 6e 67 | 20 6d 65 6d 6f 72 79 20 |erencing| memory |
|000005f0| 6c 6f 63 61 74 69 6f 6e | 20 30 29 2e 20 44 65 62 |location| 0). Deb|
|00000600| 75 67 67 65 72 73 20 63 | 61 6e 20 74 61 6b 65 20 |uggers c|an take |
|00000610| 74 68 65 20 63 6f 72 65 | 0a 66 69 6c 65 20 61 6e |the core|.file an|
|00000620| 64 20 70 6c 61 63 65 20 | 79 6f 75 20 62 61 63 6b |d place |you back|
|00000630| 20 61 74 20 74 68 65 20 | 70 6f 69 6e 74 20 6f 66 | at the |point of|
|00000640| 20 65 78 65 63 75 74 69 | 6f 6e 20 77 68 65 72 65 | executi|on where|
|00000650| 20 74 68 65 0a 65 72 72 | 6f 72 20 6f 63 63 75 72 | the.err|or occur|
|00000660| 72 65 64 2c 20 61 6c 6c | 6f 77 69 6e 67 20 79 6f |red, all|owing yo|
|00000670| 75 20 74 6f 20 66 69 67 | 75 72 65 20 6f 75 74 20 |u to fig|ure out |
|00000680| 77 68 61 74 20 77 65 6e | 74 20 77 72 6f 6e 67 2e |what wen|t wrong.|
|00000690| 0a 0a 41 20 73 65 67 6d | 65 6e 74 20 66 61 75 6c |..A segm|ent faul|
|000006a0| 74 20 69 73 20 61 63 63 | 65 73 73 69 6e 67 20 61 |t is acc|essing a|
|000006b0| 6e 20 69 6e 76 61 6c 69 | 64 20 6d 65 6d 6f 72 79 |n invali|d memory|
|000006c0| 20 6c 6f 63 61 74 69 6f | 6e 20 28 64 65 72 65 66 | locatio|n (deref|
|000006d0| 65 72 65 63 69 6e 67 0a | 30 2c 20 61 63 63 65 73 |erecing.|0, acces|
|000006e0| 73 69 6e 67 20 61 6e 20 | 61 72 72 61 79 20 6f 75 |sing an |array ou|
|000006f0| 74 20 6f 66 20 62 6f 75 | 6e 64 73 2c 20 6f 72 20 |t of bou|nds, or |
|00000700| 75 73 69 6e 67 20 61 6e | 20 75 6e 69 6e 69 74 69 |using an| uniniti|
|00000710| 61 6c 69 7a 65 64 20 70 | 6f 69 6e 74 65 72 2c 0a |alized p|ointer,.|
|00000720| 61 72 65 20 66 72 65 71 | 75 65 6e 74 20 63 61 75 |are freq|uent cau|
|00000730| 73 65 73 20 66 6f 72 20 | 74 68 69 73 20 65 72 72 |ses for |this err|
|00000740| 6f 72 20 28 77 68 69 63 | 68 20 77 69 6c 6c 20 69 |or (whic|h will i|
|00000750| 6e 20 74 75 72 6e 20 63 | 61 75 73 65 20 61 20 63 |n turn c|ause a c|
|00000760| 6f 72 65 0a 64 75 6d 70 | 2e 29 0a 0a 54 6f 20 6d |ore.dump|.)..To m|
|00000770| 61 6e 75 61 6c 6c 79 20 | 66 6f 72 63 65 20 79 6f |anually |force yo|
|00000780| 75 72 20 64 65 73 74 72 | 75 63 74 6f 72 20 74 6f |ur destr|uctor to|
|00000790| 20 65 78 65 63 75 74 65 | 2c 20 61 6c 6c 6f 63 61 | execute|, alloca|
|000007a0| 74 65 20 74 68 65 20 63 | 6c 61 73 73 20 77 69 74 |te the c|lass wit|
|000007b0| 68 20 0a 6e 65 77 2c 20 | 74 68 65 6e 20 64 65 6c |h .new, |then del|
|000007c0| 65 74 65 20 69 74 3a 0a | 0a 63 6c 61 73 73 20 66 |ete it:.|.class f|
|000007d0| 6f 6f 20 7b 0a 70 75 62 | 6c 69 63 3a 0a 20 20 7e |oo {.pub|lic:. ~|
|000007e0| 66 6f 6f 28 29 20 7b 2e | 2e 2e 7d 0a 7d 3b 0a 0a |foo() {.|..}.};..|
|000007f0| 69 6e 74 20 6d 61 69 6e | 28 29 0a 7b 0a 20 20 20 |int main|().{. |
|00000800| 66 6f 6f 20 2a 66 20 3d | 20 6e 65 77 20 66 6f 6f |foo *f =| new foo|
|00000810| 3b 0a 20 20 20 64 65 6c | 65 74 65 20 66 3b 0a 20 |;. del|ete f;. |
|00000820| 20 20 72 65 74 75 72 6e | 20 30 3b 0a 7d 0a 0a 2d | return| 0;.}..-|
|00000830| 42 72 69 61 6e 20 3a 2d | 29 0a 0a 6c 61 73 62 66 |Brian :-|)..lasbf|
|00000840| 6c 40 61 61 69 2e 61 72 | 63 6f 2e 63 6f 6d 0a |l@aai.ar|co.com. |
+--------+-------------------------+-------------------------+--------+--------+